using System;
using System.Collections.Generic;
using System.Text;

namespace C4F.DevKit.Contacts.Controls
{
    /// <summary>
    /// the event arguments used when saving contacts.
    /// </summary>
    public class ContactSavedEventArgs
        : EventArgs
    {
        #region Enum

        public enum EditMode
        {
            Added = 1, Updated = 2, Deleted = 3
        }

        #endregion Enum

        #region Constructor

        public ContactSavedEventArgs()
        {
            InitializeProperties();
        }

        #endregion Constructor
                
        #region Properties

        /// <summary>
        /// The id of the contact to be saved.
        /// </summary>
        public string ContactID { get; set; }

        /// <summary>
        /// The type of Update to performed as described by the EditMode enumeration.
        /// </summary>
        public EditMode UpdateType { get; set; }

        #endregion Properties

        #region Methods

        #region Private

        private void InitializeProperties()
        {
            ContactID = string.Empty;
        }

        #endregion Private

        #endregion Methods
    }
}
